package woshiheima1;

public class JumpingDemo {

    public static void main(String[] args){

        Cat cat = new Cat();
        cat.jump();
        cat.eat();
        cat.setName("加菲");
        cat.setAge(5);
        System.out.print(cat.getName()+","+cat.getAge());
//通过这个方法计算程序运行的时间（单位毫秒）
        /*long start = System.currentTimeMillis();
        for (int i=0;i<10;i++){
            System.out.print(i);
        }
        long end = System.currentTimeMillis();
        System.out.print("共耗时"+(end-start));*/
    }
}
